package org.management.system.service.impl;

import org.management.base.BaseServiceImpl;
import org.management.system.dao.PermissionDao;
import org.management.system.entity.PermissionEntity;
import org.management.system.service.PermissionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 功能描述
 * 访问权限服务类
 * @author jiangyan
 * @date 2019/03/14
 * @description
 * @project management
 */
@Service
public class PermissionServiceImpl extends BaseServiceImpl<PermissionEntity> implements PermissionService {

    @Resource
    private PermissionDao permissionDao;

    /**
     * 根据角色ID查询访问权限
     * @param roleId 角色ID
     * @return List<PermissionEntity>
     */
    @Override
    public List<PermissionEntity> selectPermissionByRoleId(String roleId) {
        return permissionDao.selectPermissionByRoleId(roleId);
    }
}